﻿namespace WinFormsApp1.bo;

//轧制表List<TPMOUTR02>
public struct TPMOUTR02
{
    public int stat;

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 24 * 2 + 1)]
    public string REC_CREATOR; //记录创建责任者 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string REC_CREATE_TIME; //记录创建时刻 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 24 * 2 + 1)]
    public string REC_REVISOR; //记录修改责任者 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string REC_REVISE_TIME; //记录修改时刻 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string ARCHIVE_FLAG; //归档标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string ARCHIVE_STAMP_NO; //归档邮戳号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string RL_NO; //轧批号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string RL_ITEM_NO; //轧批项目号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 8 * 2 + 1)]
    public string RL_GROUP_DATE; //轧批组成日期 

    public double ROLL_DIA; //轧制外径 

    public double ROLL_WAL_THICK; //轧制壁厚

    public int ROLL_LEN_FROM; //轧制长度起 

    public int ROLL_LEN_TO; //轧制长度止

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string MAKE_METHOD_CODE; //制造方法代码

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 50 * 2 + 1)]
    public string MAKE_METHOD; //制造方法

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 5 * 2 + 1)]
    public string PROD_MID_CODE; //品名中分类代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 30 * 2 + 1)]
    public string PROD_MID_CNAME; //品名中分类中文 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string ST_NO; //出钢记号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 4 * 2 + 1)]
    public string MTRL_NO; //材质号

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 50 * 2 + 1)]
    public string MTRL_TEXT; //材质正文 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string GROOVE_CODE; //主孔型代码 

    public double GROOVE_SIZE; //主孔型尺寸

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string GROOVE_DESC; //主孔型说明 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string SUB_GROOVE_CODE; //子孔型代码

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string SUB_GROOVE_DESC; //子孔型说明 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string SUB_GROOVE_GROUP_CODE; //子孔型分类代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 60 * 2 + 1)]
    public string SUB_GROOVE_TYPE_TEXT; //子孔型分类正文

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string BILLET_DIF_CODE; //管坯分类代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string STEEL_MAKING_METHOD_CODE; //冶炼方式代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 60 * 2 + 1)]
    public string STEEL_MAKING_METHOD; //冶炼方式

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string BILLET_STRIP_CODE; //管坯剥皮方式代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string BILLET_STRIP; //管坯剥皮方式 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string BILLET_PROC_MODE_CODE; //管坯加工方式代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string BILLET_PROC_MODE; //管坯加工方式 

    public double BILLET_DIA_STRIP; //管坯剥皮前直径 

    public double BILLET_DIA; //管坯直径

    public double BILLET_WT_PER_METER; //管坯米重 

    public double BILLET_LEN; //坯长度 

    public double BILLET_WT; //坯重量 

    public double RAW_LEN; //棒材长度

    public double MANDREL_DIA; //芯棒直径 

    public double MANDREL_ADJ; //芯棒调整 

    public double PIERC_DIA; //穿孔空心坯外径 

    public double PIERC_WAL_THICK; //穿孔空心坯壁厚 

    public double PIERC_LEN; //穿孔空心坯长度 

    public double SIZING_DIA; //减径空心坯外径 

    public double SIZING_WAL_THICK; //减径空心坯壁厚 

    public double SIZING_LEN; //减径空心坯长度

    public double ROLLING_DIA; //连轧管外径 

    public double ROLLING_WAL_THICK; //连轧管壁厚 

    public double ROLLING_LEN; //连轧管长度

    public double SRM_DIA_MIN; //张减管外径下限 

    public double SRM_DIA_MAX; //张减管外径上限 

    public double SRM_WAL_THICK_MIN; //张减管壁厚下限 

    public double SRM_WAL_THICK_MAX; //张减管壁厚上限

    public double SRM_LEN; //张减管长度 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 3 * 2 + 1)]
    public string SAW_ABC; //锯切ABC 

    public int SAW_LAYER; //锯切层数 

    public double SAW_LEN; //锯切长度 

    public int SAW_CUT; //锯切刀数

    public int SAW_TUBE; //锯切根数 

    public double SAW_BUNDLE_WT; //锯切捆重 

    public double CUT_HEAD_LEN; //切头长度 

    public double CUT_TAIL_LEN; //切尾长度

    public double USAGE_LEN; //用于求锯切长度的管子利用长度

    public double VALID_LEN; //有效长度 

    public double REMAIN_LEN; //剩余长度 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 4 * 2 + 1)]
    public string DEST_CODE; //去向代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string FA_LINE_NO; //FA线号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string CEC_FLAG; //CEC标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string ANNEAL_FLAG; //退火标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string FIX_FLAG; //定尺标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string EXPORT_FLAG; //出口标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string URG_ORDER_FLAG; //紧急合同标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string JOINT_STUFF_FLAG; //接头原料管标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string OIL_JOINT_FLAG; //油井管/管接头标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string ULT_INSPECT_FLAG; //超声检验标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string SPECIAL_TOL_FLAG; //特殊公差标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string COME_PROC_FLAG; //来料加工标记

    public double REQR_ROLL_WT; //需轧制重量 

    public int REQR_BILLET_NUM; //需投料管坯数 

    public int ORDER_CNT; //合同数 

    public int FIX_ORDER_CNT; //定尺合同数 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string OU_BACKLOG_CODE; //组批工序代码

    public int OU_BACKLOG_SEQ; //组批工序顺序号

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string CHECK_FLAG; //审核标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 24 * 2 + 1)]
    public string CHECK_MAKER; //审核责任者 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string CHECK_DATE; //审核日期

    public double MANDRIL_HEAD_DIA; //顶头直径 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 500 * 2 + 1)]
    public string REMARK_PS; //计划备注
}